<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>快捷方式</title>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css">
<!--公共样式结束-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/module_form.css">
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/page_memberAdd.css">
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.min.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/jquery.timer.js"></script>
<script src="{$NOW_THEME_URL}/Assets/Js/common.js"></script>
</head>

<body>
	<div class="page_header">
		<!-- <div class="tabbar">
			<ul class="tab clearfix" tabname="tab1">
				<li class="tabhover" show="tab1_0">我的快捷方式</li>
			</ul>
		</div> -->
	</div>
	<div class="page_wraper">
		<div id="tab1_0" fortab="tab1">
			<form action="" method="post" id="memberAdd_form">
				
			<fieldset style="padding:10px">
				
			<volist name="menu" id="v" mod="3">
				
				<div style="display:inline-block;width:160px;line-height:40px">
					<input type="checkbox" name="menu[{$v.id}]" value="{$v.id}" <eq name="v.checked" value="1">checked</eq> />
					{$v.title}
					<input type="text"     name="sort[{$v.id}]" value="{$v.orderno}" style="width:40px"/>
				</div>
					
				<eq name="mod" value="3"><br/></eq>
			
			</volist>
				
		 	</fieldset>

			</form>
		</div>
	</div>
	<div class="page_footer pdtd10">
		<input type="button" name="submit" value="确认修改" class="form_ele_submit"/>
		<!--<input type="reset"  name="reset"  value="重置表单" class="form_ele_reset"/>  -->
	</div>
</body>
<script type="text/javascript">
	//弹出窗口全局变量
	var api = frameElement.api, W = api.opener;

	$(function(){
		//滑动门
		$('.tabbar li').click(function(){
			var tabname = $('.tabbar>ul').attr('tabname');
			$('.tabbar li').removeClass('tabhover');
			$(this).addClass('tabhover');
			
			$('div[fortab="'+tabname+'"]').hide();
			$('#'+$(this).attr('show')).show();
		});
		
		//表格隔行换色
		$('.module_form tr:odd').addClass('odd');
		$('.module_form tr:even').addClass('even');
		
		//表单操作
		//重置
		$('.form_ele_reset').on('click',function(){
			$('#memberAdd_form').get(0).reset();
		});
		
		//提交
		$('.form_ele_submit').on('click',function(){
			
			var tipsObj = windowApi.lhgdialog.tips('正在提交数据...',10,etIcon.loading);
			
			//通过Ajax提交表单
			var postData = $('#memberAdd_form').serialize();
			
			$.post("{:U('Public/addApp')}", postData ,
				function(data){
					tipsObj.close();
					windowApi.lhgdialog.tips('修改成功！',1,etIcon.success,function(){
						//var obj = windowApi.lhgdialog.list['Public_addApp'];
						//obj.reload(obj);
						//window.location.reload();
						parent.window.location.reload();
						frameApi.close(); 
					});
				}, "json"
			);
		});
	});
</script>
</html>
